abstract class Animal {
    abstract void speak();
}
class Dog extends Animal {
    @Override
    void speak() {
        System.out.println("汪汪汪");
    }
}

class Cat extends Animal {
    @Override
    void speak() {
        System.out.println("喵喵喵");
    }
}
